package flash.sound.audio.buffer {
  import flash.sound.audio.format.IAudioFormat;
  import flash.utils.ByteArray;
  
  
  /**
  * 
  */
  public interface IAudioBuffer {
    
    /**
    * 
    */
    function set id(value: String): void;
    
    /**
    * 
    */
    function get id(): String;

    /**
    * 
    */
    function set data(value: ByteArray): void;
    
    /**
    * 
    */
    function get data(): ByteArray;

    /**
    * 
    */
    function set audioFormat(value: IAudioFormat): void;
    
    /**
    * 
    */
    function get audioFormat(): IAudioFormat;

    /**
    * 
    */
    function readAudio(position: int, samples: int, format: IAudioFormat): ByteArray;

    /**
    * 
    */
    function writeAudio(position: int, format: IAudioFormat, bytes: ByteArray): void;
  }
}